﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace PersistentObject.Common.Criteria
{
    /// <summary>
    /// Represent a criteria which is like A is null
    /// </summary>
    public class NullCriteria : BaseCriteria
    {
        /// <summary>
        /// Indicate the A property
        /// </summary>
        public OperandProperty Property { get; private set; }

        /// <summary>
        /// The constructor of Null criteria
        /// </summary>
        /// <param name="field">Indicate the property of mapping type</param>
        public NullCriteria(string field)
        {
            Property = new OperandProperty(field);
        }

        /// <summary>
        /// The constructor of Null criteria
        /// </summary>
        /// <param name="property">Indicate the property operand</param>
        public NullCriteria(OperandProperty property)
        {
            Property = property;
        }
    }
}
